<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}{$errors.dest}{/if}</div>
<form name="form" method="post" action="?module=backoffice&action=AjaxDuplicatePublication&row[0]={$originalPublication->getUniqueId()}" class="nyroModal">
{t assignTo=title}Duplicate a document{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
    <div id="modalContent">
	<br />
		<table class="listTable">
			<tr><td>{t}Label{/t} :</td><td><input type="text" name="form[label]" value="{$values.label|escape:"html"}" style="width:300px" />{if isset($errors.label)}{icon name="warning.png"} {$errors.label}{/if}</td></tr>
			<tr>
                <td>{t}Folder{/t} :</td>
                <td>
                    <select name="form[folder]">
                    {foreach from=$values.folders item=fold}
                        <option value="{$fold[0]}" {if $fold[3] == false}disabled="disabled"{/if} {$fold[2]}>{$fold[1]}</option>
                    {/foreach}
                    </select>
                </td>
            </tr>
		</table>
    </div>
{t assignTo=title}Duplicate{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$title}
</form>
